From: Florian Müllner Date: Fri, 27 Apr 2012 09:57:48 +0000 (+0200) Subject: popupMenu: Fix RemoteMenu items with boolean state action X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6643 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7293ddb22c3a1b97ea74e892af20e62ed3b31a3e;p=gnome-shell.git popupMenu: Fix RemoteMenu items with boolean state action Stateful actions are expected to pass their state when activated, but we currently only do this for actions with a string state. https://bugzilla.gnome.org/show_bug.cgi?id=674932 --- diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index 09a9b737d..b1a06ed9c 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -1867,7 +1867,7 @@ const RemoteMenu = new Lang.Class({ item = new PopupSwitchMenuItem(label, action.state.get_boolean()); action.items.push(item); specificSignalId = item.connect('toggled', Lang.bind(this, function(item) { - this.actionGroup.activate_action(action_id, null); + this.actionGroup.activate_action(action_id, GLib.Variant.new_boolean(item.state)); })); break; case 's':